<template>
  <div>
    <div class="text"><span >精选推荐</span></div>
    <div class="items" @click="pushFundPage">
      <ul>
        <li v-for="(item,index) in 10" :key="index">
          <div>
            <span class="text-item-title">兴全恒裕债券C</span> 
            <span class="text-item-rate">4.12%</span>
            <span class="text-item-disc">成立以来年化增长</span>
          </div>  
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
export default {
  name:"selected",
  data() {
    return {

    }
  },
  methods: {
    pushFundPage() {
      this.$router.push('/fund')
    }
  }
}
</script>

<style lang="less">
.text {
  margin-top: 25px;
  margin-left: 35px;
  font-size: 20px;
}
.items {
  
  margin: 20px auto;
  width: 90%;
  height: 110px;
  line-height: 140px;
  // border: 1px solid red;
  overflow-x: scroll;
  overflow-y: hidden;
  ul {
  width: 1900px;
  height: 100px;
  line-height: 100px;
  // float: left;
}
ul li {
  position: relative;
  display: inline-block;
  // display: flex;
  height: 100px;
  width: 170px;
  text-align: center;
  line-height: 100px;
  margin-right: 15px;
  border: 1px solid rgb(0, 97, 241);
  border-radius: 26px;
  color: rgba(16, 16, 16, 100);
  font-size: 14px;
  text-align: center;
  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
  font-family: Arial;
  border: 1px solid rgba(187, 187, 187, 100);
}
  .text-item-title {
    position: absolute;
    top: -20px;
    left: 20px;
    color: rgb(48, 48, 48);
    font-size: 18px;
    text-align: left;
    font-family: PingFangSC-light;
  }
  .text-item-rate {
    color: rgba(224, 19, 36, 100);
    font-size: 18px;
    text-align: left;
    font-family: PingFangSC-regular;
    position: absolute;
    top: 12px;
    left: 20px;
  }
  .text-item-disc {
    position: absolute;
    top: 35px;
    left: 20px;
    color: rgba(185, 187, 189, 100);
    font-size: 14px;
    text-align: left;
    font-family: PingFangSC-extraLight;
  }
}
.items::-webkit-scrollbar {
    display: none;
  }


</style>